home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xml / ElementDeclaration$4.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  1.2 KB  |  28 lines

  1. package com.extensibility.xml;
  2.  
  3. class ElementDeclaration$4 implements ContentModelTerm.Visitor {
  4.    // $FF: synthetic field
  5.    final ElementDeclaration this$0;
  6.    int groupCount;
  7.  
  8.    public void visit(ContentModelTerm var1) {
  9.       if (var1.isGroup() && this.groupCount++ == 1) {
  10.          this.this$0.errors.addElement(new ParserException(225, (String)null));
  11.       }
  12.  
  13.       if (var1.isTermReference() && var1.getOccurance() != 0) {
  14.          this.this$0.errors.addElement(new ParserException(226, var1.getTerm()));
  15.       }
  16.  
  17.       if (var1.getConnection(true) == ',') {
  18.          this.this$0.errors.addElement(new ParserException(227, var1.getTerm()));
  19.       }
  20.  
  21.    }
  22.  
  23.    ElementDeclaration$4(ElementDeclaration var1) {
  24.       this.this$0 = var1;
  25.       this.groupCount = 0;
  26.    }
  27. }
  28.